home *** CD-ROM | disk | FTP | other *** search
/ AmigActive 24 / AACD 24.iso / AACD / System / ReqToolsLib / Source / reqtools / rtallocrequesta.c < prev    next >
Encoding:
C/C++ Source or Header  |  2001-07-02  |  1.6 KB  |  78 lines

  1.  
  2. /*
  3.     (C) 1999 - 2000 AROS - The Amiga Research OS
  4.     $Id: rtallocrequesta.c,v 1.3 2000/11/26 16:53:48 stegerg Exp $
  5.  
  6.     Desc:
  7.     Lang: English
  8. */
  9.  
  10. #include <exec/types.h>
  11. #include <proto/exec.h>
  12. #include <proto/reqtools.h>
  13. #include <proto/intuition.h>
  14. #include <exec/libraries.h>
  15. #include <exec/memory.h>
  16. #include <aros/libcall.h>
  17.  
  18. #include "reqtools_intern.h"
  19.  
  20. /*****************************************************************************
  21.  
  22.     NAME */
  23.  
  24.     AROS_LH2(APTR, rtAllocRequestA,
  25.  
  26. /*  SYNOPSIS */
  27.  
  28.     AROS_LHA(ULONG, type, D0),
  29.     AROS_LHA(struct TagItem *, taglist, A0),
  30.  
  31. /*  LOCATION */
  32.  
  33.     struct ReqToolsBase *, ReqToolsBase, 5, ReqTools)
  34.  
  35. /*  FUNCTION
  36.     Allocates a requester structure for you in a future compatible
  37.     manner. This is the only way to properly allocate a rtFileRequester,
  38.     rtFontRequester, rtReqInfo or rtScreenModeRequester structure. The
  39.     structure will be initialized for you.
  40.  
  41.     Use rtFreeRequest() to free the requester structure when you no
  42.     longer need it.
  43.    
  44.     INPUTS
  45.     type    - type of structure to allocate, currently RT_REQINFO,
  46.         RT_FILEREQ, RT_FONTREQ or RT_SCREENMODEREQ.
  47.     taglist - pointer to array of tags (currently always NULL).
  48.  
  49.     TAGS
  50.     no tags defined yet
  51.     
  52.     RESULT
  53.     req - pointer to the requester allocated or NULL if no memory.
  54.  
  55.     NOTES
  56.  
  57.     EXAMPLE
  58.  
  59.     BUGS
  60.     none known
  61.  
  62.     SEE ALSO
  63.     rtFreeRequest()
  64.  
  65.     INTERNALS
  66.  
  67.     HISTORY
  68.  
  69. ******************************************************************************/
  70. {
  71.     AROS_LIBFUNC_INIT
  72.  
  73.     return AllocRequestA(type, taglist); /* in filereqalloc.c */
  74.     
  75.     AROS_LIBFUNC_EXIT
  76.     
  77. } /* rtAllocRequestA */
  78.